<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
            <title>Shampoo - My Lifestyle. My Reservation.</title>
            <link href='http://fonts.googleapis.com/css?family=Open+Sans:100,400,300,300italic,400italic,600,600italic,700,700italic,800,800italic&amp;subset=latin,latin-ext' rel='stylesheet' type='text/css' />
            <!--<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />-->
            
            
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/jquery-ui.css'); ?>
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/bootstrap.min.css'); ?>
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/bootstrap-responsive.min.css'); ?>
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/bootstrap-select.min.css'); ?>
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/bootstrap-timepicker.min.css'); ?>
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/default.css'); ?>
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/custom.css'); ?>
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/component.css'); ?>
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/style.css'); ?>
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/noJS.css'); ?>
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/responsive.css'); ?>
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/chosen.css'); ?>
            <?php Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/select2.css'); ?>
            
            <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>
            
            <?php Yii::app()->clientScript->registerScriptFile($this->assetDir . 'js/jquery-ui1.10.3.js', CClientScript::POS_HEAD); ?>
            <?php Yii::app()->clientScript->registerScriptFile($this->assetDir . "js/bootstrap.min.js"); ?>
            <?php Yii::app()->clientScript->registerScriptFile($this->assetDir . "js/jquery.swing.js"); ?>
            <?php Yii::app()->clientScript->registerScriptFile($this->assetDir . "js/jquery.easing.1.3.js"); ?>
            <?php Yii::app()->clientScript->registerScriptFile($this->assetDir . "js/bootstrap-select.min.js"); ?>
            <?php Yii::app()->clientScript->registerScriptFile($this->assetDir . 'js/prettify.js'); ?>
            <?php Yii::app()->clientScript->registerScriptFile($this->assetDir . 'js/browser-search.js'); ?>
            <?php Yii::app()->clientScript->registerScriptFile($this->assetDir . 'js/jquery.chosen.min.js'); ?>
            <?php Yii::app()->clientScript->registerScriptFile($this->assetDir . 'js/modernizr.custom.js'); ?>
            <?php Yii::app()->clientScript->registerScriptFile($this->assetDir . 'js/select2.min.js'); ?>

            <script src="<?php echo $this->assetDir ?>js/bootstrap-timepicker.min.js"></script>
            <script src="<?php echo $this->assetDir ?>js/jquery.slimscroll.min.js"></script>
            <script src="<?php echo $this->assetDir ?>js/jquery.mobile.customized.min.js" type='text/javascript' ></script>
            
            
            

<!--            <script type="text/javascript"
                    src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDOTOkELB--FexXJB7liJR2hd7cgCDchF4&sensor=false">
            </script>-->
    </head>

    <body class="browser-page">
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>
    	<div class="page-wrap">
			<?php if ($this->business_model): ?>
                <div class="page-bg"><img src="<?php if(isset($this->business_model->bookBG)) echo $this->business_model->bookBG; else echo '/files/opts/0072e45763d56108dabc6347ef812b51.jpg'; ?>"></div>
            <?php else :?>
            	<div class="page-bg"><img src="<?php echo '/files/opts/0072e45763d56108dabc6347ef812b51.jpg'; ?>"></div>
			<?php endif; ?>
            <?php echo $this->renderPartial('//layouts/_main_header') ?> 
            <?php echo $content; ?>
            <div id="loading">
                <div id="loading_content">
                    <img src="<?php echo $this->assetDir ?>img/loading.gif"/>
                    Loading ...
                </div>
            </div>
        </div>
		<?php echo $this->renderPartial('//layouts/_footer') ?>
        <script type="text/javascript">
            $(function() {
                //load ajax
                $("#loading").bind("ajaxStart", function() {
                    $(this).show();
                }).bind("ajaxComplete", function() {
                    $(this).hide();
                });

                $('#back-top').click(function() {
                    $('body,html').animate({
                        scrollTop: 0
                    }, 800);
                    return false;
                });
            });
            
            function favourite(el, sid)
    {
<?php if (!Yii::app()->user->isGuest): ?>
            var service_fav = parseInt($('#service_fav').text());
            $.post('<?php echo $this->createUrl('favourite/check'); ?>', {
                sid: sid
            }, function(data) {
                if (data.status == 1) {//user click add favourite
                    $.pnotify({
                    text: '<?php echo Yii::t('frontend','Added to favorites list')?>',
                    type: 'success',
                    history: false,
                    sticker: false,
                    delay: 3000
                });
                    el.html('<i class="icon-heart-pink"></i>');
                    $('#service_fav').empty().append(service_fav + 1);
                }
                else {//user remove favourite
                    $.pnotify({
                    text: '<?php echo Yii::t('frontend','Removed from favorites list')?>',
                    type: 'success',
                    history: false,
                    sticker: false,
                    delay: 3000
                });
                    el.html('<i class="icon-heart-white"></i> <?php echo Yii::t('frontend','Add To My Favourite')?>');
                    $('#service_fav').empty().append(service_fav - 1);
                }
            }, 'json');
<?php else: ?>
            $.pnotify({
                    text: '<?php echo Yii::t('frontend','Please login to favourite this service')?>',
                    type: 'error',
                    history: false,
                    sticker: false,
                    delay: 4000,
                    stack: {"dir1": "down", "dir2": "left", "push": "bottom", "spacing1": 150, "spacing2": 150, context: $("body")}
                });
    //            open_login();
<?php endif; ?>
    }
        </script>
<script>(function() {
  var _fbq = window._fbq || (window._fbq = []);
  if (!_fbq.loaded) {
    var fbds = document.createElement('script');
    fbds.async = true;
    fbds.src = '//connect.facebook.net/en_US/fbds.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(fbds, s);
    _fbq.loaded = true;
  }
  _fbq.push(['addPixelId', '279943108864759']);
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', 'PixelInitialized', {}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?id=279943108864759&amp;ev=NoScript" /></noscript>
    <?php
        echo Options::getItem("js_google_tracking");
        echo Options::getItem("js_zopim_customer");
    ?>
    </body>
</html>
